<?php
class Zendvn_CheckOnline{
	
	public static function yahoo($account){
		$online=fgets(fopen(FILE_PATH . "/online.gif","r"));
	
		$status=fgets(fopen("http://opi.yahoo.com/online?u=$account","r"));
 		if ($status==$online ) return true;
 		return false;
	}
	function skype($account){
		$url = 'http://mystatus.skype.com/smallicon/' . $account;
		if(base64_encode(file_get_contents($url)) == "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAA3NCSVQICAjb4U/gAAAANlBMVEX////////29/fy8/Pu7+/l5+fh4+Pd39/a3d3W2NjMzMzDx8fAxMS6vr62u7uxtbWvtLSssLAwgBwiAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAK8AAACvABQqw0mAAAABV0RVh0Q3JlYXRpb24gVGltZQA4LzE4LzA1oj6Z/QAAACV0RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgTVggMjAwNId2rM8AAAB6SURBVBhXXc9BDsQgCEBRUForjij3v2xBSdsMu/9CIgKA2sBntBwHf9D7LLVWDlLvy5q5LVHrM3ln7i5ay5UwMSekANs3SZhljC2VW0brOecC7lP+QAhzRnJZ73TrYUixMqVRF+nURGSf8nsnrlWO2ccuMvT/RD8IcAMCGwfk9MNc3gAAAABJRU5ErkJggg=="){
			return false;
		}
		else{
			return true;
		}
	}
}